package com.gy.def.dataobject;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

@Data
@Entity
@DynamicUpdate
@DynamicInsert
@ApiModel(value = "学校课程表")
public class BookTable {
  @Id
  @GeneratedValue(strategy = GenerationType.IDENTITY)
  private String bookId;

  @ApiModelProperty(value = "书名", example = "操作系统指导")
  private String bookName;

  @ApiModelProperty(value = "书状态 0：未借 1：被借", example = "0")
  private int bookStatus;

  @ApiModelProperty(value = "借书时间", example = "2013-10-10")
  private String bookBorTime;

  @ApiModelProperty(value = "借书还时间", example = "2013-10-11")
  private String bookRebackTime;

  @ApiModelProperty(value = "借书人id", example = "123")
  private String BookUserId;

  private int isDelete;

  @JsonIgnore
  private String createTime;
}
